package com.info.zhiduoduo.repository.dto.project;

import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.info.zhiduoduo.common.excelconverter.CustomProjectTypeConverter;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)  //setter return this;
@ToString
public class MakerAllProjectDto {

	@ApiModelProperty("项目发布日期")
	@ExcelProperty("发布日期")
	private Date publishTime;

	@ApiModelProperty("姓名")
	@ExcelProperty("姓名")
	private String realname;

	@ApiModelProperty("工作室名")
	@ExcelProperty("工作室名")
	private String username;

	@ApiModelProperty("身份证号")
	@ExcelProperty("身份证号")
	private String idno;

	@ApiModelProperty("交易金额")
	@ExcelProperty("交易金额")
	private BigDecimal projectamount;

	@ApiModelProperty("企业名")
	@ExcelProperty("交易企业")
	private String compname;

	@ApiModelProperty("项目类型：【 ：1】，【智众包：2】，【智零工：3】，【委托接单：4】，【创客团：5】，【 ：6】)")
	@ExcelProperty(value = "项目类型",converter = CustomProjectTypeConverter.class)
	private Integer projectType;

	@ApiModelProperty("项目id")
	@ExcelIgnore
	private int projectid;

	@ApiModelProperty("项目状态")
	@ExcelIgnore
	private Integer state;

	@ApiModelProperty("企业id")
	@ExcelIgnore
	private int compid;

	@ApiModelProperty("用户ID")
	@ExcelIgnore
	private Integer userid;

	@ApiModelProperty("用户类型 1:自然人 2:工作室")
	@ExcelIgnore
	private Integer userType;
}
